//
//  HWpersonalIcoCell.m
//  HWanGame
//
//  Created by 陈道斌 on 2019/10/21.
//  Copyright © 2019 Chendaobin. All rights reserved.
//

#import "HWpersonalIcoCell.h"

@interface HWpersonalIcoCell()
@property(strong,nonatomic) UIView *fengexianView;


@end

@implementation HWpersonalIcoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self setupUI];
        
        
    }
    
    return self;
}


- (void)setupUI {
    
    
    
      self.contentView.backgroundColor = RGB(247, 247, 247);
    
    
      self.baiseView  = [[UIView alloc]initWithFrame:CGRectMake(20, 10, kScreenW-40, 54)];
      self.baiseView.layer.cornerRadius = 8;
      self.baiseView.layer.masksToBounds = YES;
      self.baiseView.backgroundColor = [UIColor whiteColor];
      [self.contentView addSubview:self.baiseView];
    
    
    
    
    
      self.nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, 200, 54)];
      self.nameLabel.text = @"头像";
      self.nameLabel.textColor = RGB(51, 51, 51);
      self.nameLabel.font = [UIFont systemFontOfSize:14];
      [self.baiseView addSubview:self.nameLabel];
    
    
        self.arrowImageView = [[UIImageView alloc]initWithFrame:CGRectMake(kScreenW-7-11, 26, 7, 13)];
        self.arrowImageView.image = [UIImage imageNamed:@"z_back"];
        self.arrowImageView.hidden = YES;
        [self.contentView addSubview:self.arrowImageView];
    
    
         
        self.fengexianView = [[UIView alloc]initWithFrame:CGRectMake(0, 65, kScreenW, 1)];
        self.fengexianView.backgroundColor = RGB(232, 232, 242);
       self.fengexianView.hidden = YES;
        [self.contentView addSubview:self.fengexianView];
    
    
      self.icoIamgeView  =  [[UIImageView alloc]initWithFrame:CGRectMake(kScreenW-40-36-10, 9, 36, 36)];
       self.icoIamgeView.image = [UIImage imageNamed:@"acat"];
       self.icoIamgeView.layer.cornerRadius = 8;
       self.icoIamgeView.layer.masksToBounds = YES;
      [self.baiseView addSubview:self.icoIamgeView];
    
    
    
}

@end
